package com.zh.work.entity.trans;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.zh.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@ApiModel("二维码折扣交易实体类")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("qrcode_trans_zk")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class QrCodeTransZkEntity extends BaseEntity {
  private static final long serialVersionUID = 3667683287479243659L;

  @ApiModelProperty(value = "主键", name = "id")
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;
  @ApiModelProperty(value = "机构号", name = "branchno")
  @TableField(value = "branchno")
  private String branchNo;
  @ApiModelProperty(value = "机构名称", name = "branchName")
  private String branchName;
  @ApiModelProperty(value = "商户号", name = "merchNo")
  @TableField(value = "merchno")
  private String merchNo;
  @ApiModelProperty(value = "商户名称", name = "merchName")
  private String merchName;
  @ApiModelProperty(value = "下单日期", name = "transDate")
  private String transDate;
  @ApiModelProperty(value = "下单时间", name = "transTime")
  private String transTime;
  @ApiModelProperty(value = "交易金额", name = "amount")
  private Float amount;
  @ApiModelProperty(value = "平台订单号", name = "orderNo")
  @TableField(value = "orderno")
  private String orderNo;
  @ApiModelProperty(value = "渠道编码", name = "channelCode")
  private String channelCode;
  @ApiModelProperty(value = "渠道商户号", name = "channelMerchNo")
  @TableField(value = "channel_merchno")
  private String channelMerchNo;
  @ApiModelProperty(value = "渠道订单号", name = "channelOrderNo")
  @TableField(value = "channel_orderno")
  private String channelOrderNo;
  @ApiModelProperty(value = "创建时间", name = "addTime")
  private String addTime;
  @ApiModelProperty(value = "开始金额段", name = "beginAmount")
  @TableField(exist = false)
  private Float beginAmount;
  @ApiModelProperty(value = "结束金额段", name = "entAmount")
  @TableField(exist = false)
  private Float entAmount;
  @ApiModelProperty(value = "商户订单号", name = "merchOrderNo")
  @TableField(value = "merch_orderno")
  private String merchOrderNo;


}
